<?php
/**
 * Header Block
 * 
 * @author Xavier VILAIN
 * @package Orx\Etl\Extractor
 * @license #license-orx#
 * 
 */

use Fox\Html\Input;
use Fox\Html\DropList;
use Fox\Generator;
use Orx\Etl\Extractor\Source;
use Fox\Html\Block;

$block = new Block('bHeader',Msg(Fox\Msg::BUNDLE,Fox\Msg::MSG_HEADER_DATA));
$block->add(new Input(array('extractor_label','label'),true))
			->size(Input::SIZE_XLARGE);
// Language
$languages = Xview::instance()->application()->languages();
$block->add(new DropList('language',true,false,true))
		->options($languages,'langu',Generator::call('description'))
		->size(0);
// Data Source Available List
$sources = Fox\Dao::finder(Source::className())
			->find();
$block->add(new DropList(array('extractor_source','source'),true,false,true))
		->options($sources,'source',Generator::call('label'));
return $block;